<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="HeaderDiv" id="id_HeaderDiv">
	<div class="HeaderLeftDiv">
		<a href="/index.jsp">首页</a><a href="go_applications.action">应用</a>
		<a href="go_download.action" target="_blank">下载</a>
	</div>

	<div class="HeaderRightDiv">
		<c:choose>
			<c:when test="${user != null}">
				欢迎您：<a class="" href="personal.action?act=showSpace">${user.nickname}</a>
				<a href="action_logout.action">注销</a>
			</c:when>
			<c:otherwise>
				<a id="id_LoginButton">登录</a><a href="go_register.action">注册</a>
			</c:otherwise>
		</c:choose>
	</div>
			
</div>

<c:if test="${user == null}">
			
	<div class="LoginDiv" id="id_LoginDiv">
		<form action="action_login" id="form" method="post">
			<div>
				<label>账号：</label> <input type="text" class="EditText"
					name="user.username" id="username"/>
			</div>
			<div>
				<label>密码：</label> <input type="password" class="EditText"
					name="user.password" id="password"/>
			</div>
			<div>
				<input type="checkbox" class="AutoLogin"><label>自动登录</label>
				<button id="submit" onclick="" type="submit">登录</button>
			</div>
		</form>
	</div>
</c:if>
